Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd = GetCurrentDir()

# add the general drivers.
src = Split("""
src/uart_frame.c
""")
path =  [cwd]
path += [cwd + '/inc']

if GetDepend('UART_FRAME_USING_SAMPLE'):
    src += Glob(cwd+"/src/uart_frame_sample.c")

group = DefineGroup('uart_frame', src, depend = ['RT_USING_UART_FRAME'], CPPPATH = path)

Return('group')
